import request from '@/utils/request'

export function getDepartList(params) {
  return request({
    url: '/initValue/depart/depart',
    method: 'get',
    params
  })
}

export function deleteById(id) {
  return request({
    url: '/initValue/depart/deleteById?id='+id,
    method: 'post'
  })
}

export function addDepart(data) {
  return request({
    url: '/initValue/depart/add',
    method: 'post',
    data
  })
}
export function updateDepart(data) {
  return request({
    url: '/initValue/depart/update',
    method: 'post',
    data
  })
}
export function departments() {
  return request({
    url: '/initValue/depart/findAll',
    method: 'get',
    
  })
}

